{% extends 'myhome/base.html' %}
{% block con %}
<!--路径导航  面包屑导航-->
<div class="breadcrumbs-area mb-70">
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
                <div class="breadcrumbs-menu">
                    <ul>
                        <li><a href="#">首页</a></li>
                        <li><a href="#" class="active">登录</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="user-login-area mb-70">
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
                <div class="login-title text-center mb-30">
                    <h2>登录</h2>
                </div>
            </div>
            <div class="col-lg-offset-3 col-lg-6 col-md-offset-3 col-md-6 col-sm-12 col-xs-12">
                <div class="login-form">
                    <form action="{% url 'myhome_dologin' %}?nextpath={{ request.GET.nextpath }}" method="post">
                        {% csrf_token %}
                        <div class="single-login">
                            <label>
                                手机号
                                <span>*</span>
                            </label>
                            <input type="text" name="phone" required>
                        </div>
                        <div class="single-login">
                        <label>
                            密码<span>*</span>
                        </label>
                        <input type="password" name="password" required>
                    </div>
                        <div class="single-login single-login-2">
                            <a id="dologin" href="javascript:void(0)">登录</a>
                        </div>
                        <a href="#">忘记密码？</a>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}
{% block js %}
<script>
    $('#dologin').click(function () {
        $(this).parents('form').submit()
        return false
    })
</script>
{% endblock %}